<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<% 
String check = (String)request.getAttribute("check");
String find  = (String)request.getAttribute("find");
System.out.println("??? = " + find);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/Main/Css/FirstMain.css" />
<script src="/KOMORIUTA/Main/FirstMain/Fm_JScript.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/Main/FirstMain/jquery.js" type="text/javascript"></script>

<style type="text/css">
	a:link, a:visited, a:active{color: black; text-decoration:none;}
	#maindiv{margin: 0 auto; width:100%; height:100%; border: 1px solid #e6e6e6;}
</style>

<title>login_page</title>

<style type="text/css">
<!--
body {
margin: 0px;
height: 100%;
 /*본문에 여백을 주지않고 본문의 높이를 100%로 합니다.(테이블의 height=100%는 적용이 않됩니다.)*/
}
#tableContainer {
position: absolute;
top: 50%;
margin-top: -145px;
width: 100%;
text-align: center;

/*tableContainer를 레이어로하여 상단에서 절반 내려와 테이블 높이의 절반을 다시 빼줍니다.*/
/*이러면 세로축으로 중간에 위치합니다. 그리고 tableContainer의 너비를 100%로 하여*/

/*text-align: center 를 사용해서 가로축 중간에 위치 하게 합니다.*/
}
-->
</style>

</head>

<body>
<div id="tableContainer">
<div id="maindiv">
<table width="572" height="162" border="0" cellpadding="0" cellspacing="0" align="center"  background="<%=request.getContextPath() %>/Main/image/imsi.jpg">
  <tr>
    <th width="446" rowspan="2" scope="row"><table width="200" border="0" cellpadding="0" cellspacing="0" >
      <tr>
        <th scope="row">
			<%if(check.equals("0")){ %>
				<img alt="" src="<%=request.getContextPath() %>/Main/image/logo.png"/>
			<%}else if(check.equals("1")){ %>
				<img alt="" src="<%=request.getContextPath() %>/Main/image/young_login.png"/>
			<%}else if(check.equals("2")){ %>
				<img alt="" src="<%=request.getContextPath() %>/Main/image/old_login.png"/>
			<%}else if(check.equals("3")){ %>
				<img alt="" src="<%=request.getContextPath() %>/Main/image/no_admi.png"/>
			<%}else if(check.equals("7")){ %>
				<img alt="" src="<%=request.getContextPath() %>/Main/image/guest_login.png"/>
			<% }%>
		</th>
      </tr>
      <tr>
		<th scope="row" height="223" width="300" valign="top">
		  
		  	
			<% if(check.equals("0")){ %>
			
			<jsp:include page="Fm_Flash.jsp"/>
		
			<% }else if(check.equals("1")){ %>
		
			<jsp:include page="Fm_Login.jsp"/>
		
			<% }else if(check.equals("2")){ %>
		
			<jsp:include page="Fm_Login.jsp"/> 
		
			<% }else if(check.equals("4")){%>
	
			<jsp:include page="Fm_Find.jsp"/>
	
			<%}else if(check.equals("7")){ %>
		  	
		  	<jsp:include page="Fm_GestMain.jsp"/>
		  	
		  	<% } %>
		
		</th>
  	  </tr>    
</table>
	</th>
    <th width="100" height="50" valign="top">
		<table width="100" border="0" cellpadding="0" cellspacing="0">
		  <tr>
			<th width="100" scope="row" valign="top">
				<img alt="" src="<%=request.getContextPath() %>/Main/image/login.png" border="0">
			</th>
		  </tr>
		</table>	
	</th>
	
  </tr>
  <tr>
    <th scope="row" valign="middle">
		<table width="110" border="0" cellpadding="0" cellspacing="0">
		  
	      <tr>
	        <th width="100" valign="middle" scope="row" height="52">
				<a href="/KOMORIUTA/MFirstAction.do?action_code=start&num=2" >
				<img title="おじいちゃん　おばあちゃん" alt="おじいちゃん　おばあちゃん" src="<%=request.getContextPath() %>/Main/image/noin.jpg" border="0">
				</a>
			</th>
	      </tr>
		  
	      <tr>
	        <th scope="row" valign="middle" height="52">
				<a href="/KOMORIUTA/MFirstAction.do?action_code=start&num=3">
				<img title="ママ　パパ" alt="ママ　パパ" src="<%=request.getContextPath() %>/Main/image/bubu.jpg" border="0">
				</a>
			</th>
	      </tr>
	      <tr>
	        <th scope="row" valign="middle" height="52">
				<a href="javascript:guest()">
				<img title="guest" alt="guest" src="<%=request.getContextPath() %>/Main/image/guest.jpg" border="0">
				</a>
			</th>
	      </tr>
	    </table>
		
		</th>
	  </tr>
   </table>
   </div>
</div>


</body>
</html>
